import re


text = ''

with open('./t.txt', encoding='gb18030', errors='ignore') as f:
 text = f.read()

m = re.findall(r'child_window\(.*(\d).*auto_id="(\d+)", control_type="Button"\)', text)
print(m)